<ul class="nav nav-pills nav-stacked">
    <li <?php echo ($tab == 'profile') ? 'class="active"' : ''; ?>>
        <a href="<?php echo base_url('user/details/1/profile'); ?>">Profile</a>
    </li>
    <li <?php echo ($tab == 'recipes') ? 'class="active"' : ''; ?>>
        <a href="<?php echo base_url('user/details/1/recipes'); ?>">Recipes</a>
    </li>
    <li <?php echo ($tab == 'comments') ? 'class="active"' : ''; ?>>
        <a href="<?php echo base_url('user/details/1/comments'); ?>">comments</a>
    </li>
</ul>
